/*
  File: PermissionUpdateRequest.cs
  Author: rcrxy
  CreateTime: 2025/08/06 21:10

  Description:
*/

using System.ComponentModel.DataAnnotations;

namespace StudentVideo.Shared.Dtos.Permission;

/// <summary>
/// 权限 - 修改
/// </summary>
public class PermissionUpdateRequest {
   [Required]
   [MaxLength(50)]
   public required string Id { get; set; }

   /// <summary>
   /// 显示名称
   /// </summary>
   [MaxLength(50)]
   public string? NickName { get; set; }

   /// <summary>
   /// 唯一标识 (Api 地址) 格式: controller/action:method
   /// </summary>
   [Required]
   [MaxLength(150)]
   public string? ApiPath { get; set; }

   /// <summary>
   /// 描述
   /// </summary>
   [MaxLength(255)]
   public string? Des { get; set; }

   /// <summary>
   /// 启用状态
   /// </summary>
   public bool? IsActive { get; set; } = null;
}
